<template>
	<view class="container">
		<u-collapse>
			<u-collapse-item v-for="item in questionList" :key="item.id" :title="item.title">
				<text>{{item.content}}</text>
			</u-collapse-item>
		</u-collapse>
	</view>
</template>

<script>
	import {
		getCommonQuestion
	} from '@/api/index.js'
	export default {
		data() {
			return {
				questionList: []
			};
		},
		onLoad() {
			getCommonQuestion().then(res => {
				console.log(res.data, "常見問題")
				this.questionList = res.data
			})
		}
	}
</script>

<style lang="less">
	.container {
		padding: 30rpx;
		box-sizing: border-box;
	}
</style>